package com.hjduan.spring.cloud.provider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.client.RestTemplate;
/**
 * 注册提供者
 * 
 * 作者： 段浩杰 2017年7月25日
 */
@EnableEurekaClient
@SpringBootApplication
@Controller
public class ApplicationConfiguration {
	public static void main(String[] args) {
		new SpringApplication(ApplicationConfiguration.class).run(args);
	}

	@Bean
	public RestTemplate restTemplate() {
		return new RestTemplate();
	}
}
